<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			var x=[123,67,361,881,101,23];
			x.sort((a,b)=>{
				return a-b;
			});
			alert(x.join("$"));
			console.log(x.length);
			var y=x.map(o=>o+5);
			console.log("y=",y.join("$"));
			x.pop();
			console.log(x.length);
			
			var total=x.reduce((o,t)=>t=t+o);
			console.log(total);
			var b=[0,"sss","ff","你好","aaaaaaa"];
			b.reverse();
			console.log(b.join("#"));
			b.sort();
			console.log(b.join("#"));
			b.unshift("老李");
			console.log(b.join("#"));
			b.splice(2,1,"鲨鱼","海报","海狮");
			console.log(b.join("#"));
			/* total=b.reduce((o,t)=>{
				 t=t+o.length;
			 }); 
			console.log("数组中字符串的长度：",total);*/
		</script>
	</head>
	<body>
	</body>
</html>